package com.wxx.design.decorator.v2;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/4/18 15:36
 */
public class AbstractDecorator extends AbstractBatterCake{
    private AbstractBatterCake abstractBatterCake;

    public AbstractDecorator(AbstractBatterCake abstractBatterCake) {
        this.abstractBatterCake = abstractBatterCake;
    }

    @Override
    protected String getDesc() {
        return abstractBatterCake.getDesc();
    }

    @Override
    protected int cost() {
        return abstractBatterCake.cost();
    }
}
